package com.mui.servicer.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mui.dao.UserDao;
import com.mui.entity.UserInfo;
import com.mui.servicer.UserService;

@Service  
@Transactional
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;

	@Override
	public List<UserInfo> queryAllUser() {
		// TODO Auto-generated method stub
		return userDao.queryAllUser();
	}

	@Override
	public UserInfo queryUser(UserInfo user) {
		return userDao.queryUser(user);
	}

	@Override
	public int updataUser(UserInfo user, String type) {
		return 0;
	}

}
